Termination Proof Script

Consider the TRS R consisting of the rewrite rules
1:    0 + y  → y
2:    s(x) + y  → s(x + y)
3:    nil ++ ys  → ys
4:    (x : xs) ++ ys  → x : (xs ++ ys)
5:    sum(x : nil)  → x : nil
6:    sum(x : (y : xs))  → sum((x + y) : xs)
7:    sum(xs ++ (x : (y : ys)))  → sum(xs ++ sum(x : (y : ys)))
8:    x - 0  → x
9:    0 - s(y)  → 0
10:    s(x) - s(y)  → x - y
11:    quot(0,s(y))  → 0
12:    quot(s(x),s(y))  → s(quot(x - y,s(y)))
13:    length(nil)  → 0
14:    length(x : xs)  → s(length(xs))
15:    hd(x : xs)  → x
16:    avg(xs)  → quot(hd(sum(xs)),length(xs))
There are 15 dependency pairs:
17:    s(x) +# y  → x +# y
18:    (x : xs) ++# ys  → xs ++# ys
19:    SUM(x : (y : xs))  → SUM((x + y) : xs)
20:    SUM(x : (y : xs))  → x +# y
21:    SUM(xs ++ (x : (y : ys)))  → SUM(xs ++ sum(x : (y : ys)))
22:    SUM(xs ++ (x : (y : ys)))  → xs ++# sum(x : (y : ys))
23:    SUM(xs ++ (x : (y : ys)))  → SUM(x : (y : ys))
24:    s(x) -# s(y)  → x -# y
25:    QUOT(s(x),s(y))  → QUOT(x - y,s(y))
26:    QUOT(s(x),s(y))  → x -# y
27:    LENGTH(x : xs)  → LENGTH(xs)
28:    AVG(xs)  → QUOT(hd(sum(xs)),length(xs))
29:    AVG(xs)  → HD(sum(xs))
30:    AVG(xs)  → SUM(xs)
31:    AVG(xs)  → LENGTH(xs)
The approximated dependency graph contains 7 SCCs: {17}, {18}, {24}, {27}, {25}, {19} and {21}.
Tyrolean Termination Tool  (0.11 seconds)   ---  May 4, 2006